import os
import shutil
spath=r'./dataset_3_9/0'

count = 0
for  file in os.listdir(spath):
    if count % 2 !=0:
        os.unlink(os.path.join(spath,file))
    count += 1 